package cn.com.git.workflow.dao;

import cn.com.git.workflow.dao.model.WorkFlowOperate;
import cn.com.git.workflow.service.query.WorkFlowOperateListQuery;

import java.util.List;

/**
  * WorkFlowOperateDAO接口
  * @author zhangzhenfu
  * @Description
  * @date 2020/4/14
*/
public interface WorkFlowOperateDAO {

    WorkFlowOperate selectById(Integer id);

    WorkFlowOperate selectOne(WorkFlowOperateListQuery query);

    int countLimit(WorkFlowOperateListQuery query);

    List<WorkFlowOperate> selectList(WorkFlowOperateListQuery query);

    Integer insertOne(WorkFlowOperate record);

    List<WorkFlowOperate> insertList(List<WorkFlowOperate> list);

    Integer updateOne(WorkFlowOperate record);

    Integer updateLimit(WorkFlowOperate record, WorkFlowOperateListQuery query);

    Integer deleteOne(Integer id);

    Integer deleteLimit(WorkFlowOperateListQuery query);
}